﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Mac
 *      Date:           2013/8/6 22:50:40
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Sector7.Framework.Core;
using Sector7.Framework.Enums;

namespace Sector7.Medical.EntityType
{
    /// <summary>
    /// <!-- The description about this class. -->
    /// </summary>
    [Serializable()]
    [DataContract]
    public class M7_Recipe : EntityBase
    {
        #region Accessor
        /// <summary>
        /// 获取和设置处方编号
        /// </summary>
        [DataMember]
        [DBField(DBFieldType.PrimaryKey)]
        public long RecipeId { get; set; }

        /// <summary>
        /// 获取和设置人的编号
        /// </summary>
        [DataMember]
        [DBField]
        public string CitizenId { get; set; }

        /// <summary>
        /// 获取和设置电子病历编号
        /// </summary>
        [DataMember]
        [DBField]
        public long EmrId { get; set; }

        /// <summary>
        /// 获取和设置创建时间
        /// </summary>
        [DataMember]
        [DBField]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 获取和设置更新时间
        /// </summary>
        [DataMember]
        [DBField]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 获取和设置处方金额
        /// </summary>
        [DataMember]
        [DBField]
        public decimal Amount { get; set; }

        /// <summary>
        /// 获取和设置科室编号
        /// </summary>
        [DataMember]
        [DBField]
        public int DeptId { get; set; }

        /// <summary>
        /// 获取和设置医生编号
        /// </summary>
        [DataMember]
        [DBField]
        public long DoctorId { get; set; }

        /// <summary>
        /// 获取和设置药师编号
        /// </summary>
        [DataMember]
        [DBField]
        public long PharmacistId { get; set; }

        /// <summary>
        /// 获取和设置收银人编号
        /// </summary>
        [DataMember]
        [DBField]
        public long CashierId { get; set; }

        /// <summary>
        /// 获取和设置处方状态
        /// </summary>
        [DataMember]
        [DBField]
        public int Status { get; set; }

        /// <summary>
        /// 获取和设置处方单项信息
        /// </summary>
        [DataMember]
        public List<M7_RecipeItem> Items { get; set; }
        #endregion
    }
}
